package com.lyubia.shop.api.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface CookieService {

    /**
     * 设置Cookie
     * @param ticket 凭证
     * @param req req
     * @param resp resp
     * @return 结果
     */
    boolean setCookie(String ticket, HttpServletRequest req, HttpServletResponse resp);


    String getCookie(HttpServletRequest req);

    boolean delCookie(HttpServletRequest req, HttpServletResponse resp);
}
